<template>
  <div class="page-container">
    <div id="wangEditor" />
  </div>
</template>

<script>
import { defineComponent, onMounted } from 'vue'
import E from 'wangeditor'
export default defineComponent({
  setup() {
    const methods = {
      createEditor() {
        const editor = new E('#wangEditor')
        editor.create()
      }
    }
    onMounted(() => {
      methods.createEditor()
    })
    return {
    }
  }
})
</script>
